import { AxiosPromise } from 'axios'
// @ts-ignore
import request from '/@/utils/request'

const prefix = '/api_dms/'

// 客户卖方方列表接口
export const getOrganizationList: () => AxiosPromise = () =>
  request(`${prefix}organization/list`)

// 充值
export const rechargeCreate: (data:object) => AxiosPromise = (data) =>
  request(`${prefix}recharge/create`, { data })

  // 获取凭证上传
export const getRechargeBefore: (data:object) => AxiosPromise = (data) =>
  request('/api_dms/recharge/before', { data })
